/* 全局样式 */
@import './theme.scss';

/* 重置样式 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--hover-bg-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c0c4cc;
}

/* 通用样式 */
.app-container {
  padding: 20px;
}

.search-wrapper {
  margin-bottom: 20px;
}

.table-wrapper {
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.pagination-container {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* 表单样式 */
.el-form {
  .el-form-item__label {
    font-weight: 500;
  }
}

/* 按钮样式 */
.el-button + .el-button {
  margin-left: 10px;
}

/* 对话框样式 */
.el-dialog {
  .el-dialog__header {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
  }
  
  .el-dialog__body {
    padding: 20px;
  }
  
  .el-dialog__footer {
    border-top: 1px solid #f0f0f0;
    padding: 15px 20px;
  }
}

/* 卡片样式 */
.el-card {
  margin-bottom: 20px;
  border: 1px solid #ebeef5;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
  
  &:last-child {
    margin-bottom: 0;
  }
  
  .el-card__header {
    padding: 15px 20px;
    font-weight: 500;
    background-color: #fafafa;
    border-bottom: 1px solid #ebeef5;
  }
  
  .el-card__body {
    padding: 20px;
    background-color: #ffffff;
  }
}

/* 表格样式 */
.el-table {
  background-color: #ffffff;
  
  th.el-table__cell {
    background-color: #fafafa;
    color: #606266;
    font-weight: 500;
    border-bottom: 1px solid #ebeef5;
  }
  
  td.el-table__cell {
    border-bottom: 1px solid #f0f0f0;
  }
  
  tr:hover > td {
    background-color: #f8f9fa !important;
  }
}

/* 标签样式 */
.el-tag + .el-tag {
  margin-left: 5px;
}